<template>
  <div id="app">
    <el-container class="page-container">
      <el-header>
        <PageHeader></PageHeader>
      </el-header>
      <el-main class="main-container">
        <!-- {{user}} -->
        <router-view></router-view>
      </el-main>
      <el-footer>
        <PageFooter></PageFooter>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
import PageHeader from '@/components/PageHeader.vue';
import PageFooter from '@/components/PageFooter.vue';
import { mapGetters } from 'vuex';

export default {
  name: 'app',
  components: {
    PageHeader,
    PageFooter,
  },
  computed: {
    ...mapGetters('user', ['user']),
  },
};
</script>

<style>
*{
  margin: 0;
  padding: 0;
}
.page-container{
  min-width: 960px;
}
.el-header,.el-footer{
  background: #333;
  color: #fff;
}
.el-main{
  min-height: calc(100vh - 120px);
  padding: 0 !important;
}
</style>
